/**
 * 
 * @authors youzhao.zhou@pandauu.com
 * @date    2016-09-22 13:31:58
 * @version $Id$
 * 
 * 模块优化
 * 
 * 
 */

;(function(root,factory){

  if(typeof exports === 'object' && typeof module === 'object'){
    
    factory(exports);

  } else if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(['exports'], factory);
  } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
    // CommonJS
    factory(exports);
  } else {
    // Browser globals 
    if (!root._s) {
      root._s = {};
    }
    factory(root);
  }
})(typeof window !== 'undefined' ? window : this ,function(exports, undefined){
  'use strict';
  
  exports.test = function($, log){
    console.log($);
    /*
      调试开关
    */
    log._logToggle(true);
  }
  
});